package com.jinsi.utils;

import java.net.InetAddress;
import java.net.UnknownHostException;


/**
 * Date : 2022/7/8 11:35
 * 小南不难
 **/
public class Ip {


    public static String getIpAddress() {
        InetAddress addr = null;
        try {
            addr = InetAddress.getLocalHost();
        } catch (UnknownHostException e) {
            e.printStackTrace();
        }
        return addr.getHostAddress();
    }
}
